// 导入二次封装axios
import koi from "@/utils/axios.ts";

// 统一管理接口
enum API {
  LIST_ARTICLE_CONTENT = "/blog/blogArticleContent/website/getContent",
  UPDATE_VIEWS = "/blog/blogArticleContent/website/updateViews"
}

// 网站文章内容查询
export const listArticleContent = (id: any) => {
  return koi.get(API.LIST_ARTICLE_CONTENT + "/" + id);
};

// 网站浏览数更新
export const updateViews = (id: any) => {
  return koi.post(API.UPDATE_VIEWS + "/" + id);
};

